#include <stdio.h>
#include <string.h>
#include <windows.h>

int mainMenu()
{
    int judge = 0;
    int choose = 0;
    char* menu[10] = { "Random Snake","Snake","Random Maze","Setting" };

    system("cls");
    for (int i = 0; i < 4; i++)
    {
        printf("%d.%s\n", i + 1, menu[i]);
    }
    printf("0.Quit\n");

    judge = scanf_s("%d", &choose);
    while (getchar() != '\n');
    if (judge == 1)return choose;
    else return -1;
}
